package class12;

import com.alibaba.fastjson.JSONObject;

/**
 * @Classname class12.JsonTest
 * @Description 类型说明
 * @Date 2022/5/10 20:36
 * @Created by 特斯汀Roy
 */
public class JsonTest {
//    @Test
    public static void main(String[] args) {
        String json="{\"a\":1}";
        JSONObject jsonObject = JSONObject.parseObject(json);
        System.out.println(jsonObject.get("a"));

        switch(json){
            case "a":
                System.out.println("不是这个值");
                break;
            case "{\"a\":1}":
                System.out.println("是设置的json");
                break;
        }

    }

}
